<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/6
  Time: 14:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>

<a href="${pageContext.request.contextPath }/toAddCustomer">添加</a>
</br>
<table width="60%" border="1" cellpadding="2" cellspacing="0">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>密码</th>
        <th>电话</th>
        <th>地址</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="list">
        <tr>
            <td>${list.cid }</td>
            <td>${list.cust_name}</td>
            <td>${list.cust_pwd }</td>
            <td>${list.cust_phone }</td>
            <td>${list.cust_address }</td>
            <td><a href="${pageContext.request.contextPath }/deleteById?cid=${list.cid}">删除</a>
                <a href="${pageContext.request.contextPath }/editById?cid=${list.cid}">编辑</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
